package com.luych.toolbox.docker.service.sdk.volume.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;
import java.util.Map;

public class DockerVolumesResult {

    @JsonProperty("Volumes")
    private List<VolumesItem> volumes;

    @JsonProperty("Warnings")
    private List<String> warnings;

    public List<VolumesItem> getVolumes() {
        return volumes;
    }

    public void setVolumes(List<VolumesItem> volumes) {
        this.volumes = volumes;
    }

    public List<String> getWarnings() {
        return warnings;
    }

    public void setWarnings(List<String> warnings) {
        this.warnings = warnings;
    }

    public static class VolumesItem {

        @JsonProperty("Options")
        private Map<String, String> options;

        @JsonProperty("Scope")
        private String scope;

        @JsonProperty("CreatedAt")
        private String createdAt;

        @JsonProperty("Driver")
        private String driver;

        @JsonProperty("Labels")
        private Map<String, String> labels;

        @JsonProperty("Mountpoint")
        private String mountpoint;

        @JsonProperty("Name")
        private String name;

        public Map<String, String> getOptions() {
            return options;
        }

        public void setOptions(Map<String, String> options) {
            this.options = options;
        }

        public String getScope() {
            return scope;
        }

        public void setScope(String scope) {
            this.scope = scope;
        }

        public String getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(String createdAt) {
            this.createdAt = createdAt;
        }

        public String getDriver() {
            return driver;
        }

        public void setDriver(String driver) {
            this.driver = driver;
        }

        public Map<String, String> getLabels() {
            return labels;
        }

        public void setLabels(Map<String, String> labels) {
            this.labels = labels;
        }

        public String getMountpoint() {
            return mountpoint;
        }

        public void setMountpoint(String mountpoint) {
            this.mountpoint = mountpoint;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}